﻿using ProtoBuf;

namespace Remoting.Reactive.ProtoBuf
{
    [ProtoContract]
    public sealed class InvocationRequest : Request, IInvocationRequest
    {
        [ProtoMember(1)]
        public string MethodName { get; set; }
        [ProtoMember(1)]
        public byte[][] Arguments { get; set; }
        [ProtoMember(1, IsRequired = false)]
        public string[] GenericArguments { get; set; }

        public override RequestKind RequestKind { get { return RequestKind.Invocation; } }
    }
}
